import request from '@/utils/request';

// 查询库存列表
export function listInventory(query: Record<string, any>) {
  return request({
    url: '/wms/inventory/list',
    method: 'get',
    params: query
  })
}

// 查询库存详细
export function getInventory(inventoryId: string | number) {
  return request({
    url: '/wms/inventory/' + inventoryId,
    method: 'get'
  })
}

// 导出库存
export function exportInventory(query: Record<string, any>) {
  return request({
    url: '/wms/inventory/export',
    method: 'post',
    data: query
  })
}

// 库存统计
export function getInventoryStatistics(query: Record<string, any>) {
  return request({
    url: '/wms/inventory/statistics',
    method: 'get',
    params: query
  })
}

// 获取库存详情列表
export function listInventoryDetail(query: Record<string, any>) {
  return request({
    url: '/wms/inventoryDetail/list',
    method: 'get',
    params: query
  })
}

// 查询库存详情
export function getInventoryDetail(detailId: string | number) {
  return request({
    url: '/wms/inventoryDetail/' + detailId,
    method: 'get'
  })
}

// 导出库存详情
export function exportInventoryDetail(query: Record<string, any>) {
  return request({
    url: '/wms/inventoryDetail/export',
    method: 'post',
    data: query
  })
}

// 获取库存历史列表
export function listInventoryHistory(query: Record<string, any>) {
  return request({
    url: '/wms/inventoryHistory/list',
    method: 'get',
    params: query
  })
}

// 导出库存历史
export function exportInventoryHistory(query: Record<string, any>) {
  return request({
    url: '/wms/inventoryHistory/export',
    method: 'post',
    data: query
  })
}




